﻿using MonthlyDB.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wicresoft.Common;
using Wicresoft.Framework.Authentication;

public partial class Page_MonthlyManage : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (AppConfig.getUserTypes(CurrentUser.ID).Length == 0)
            {
                Response.Clear();
                Response.Write("无权访问");
                Response.End();
            }
            else
                BindData();
        }
    }
    private void BindData()
    {
        rpDept.DataSource = DataAccess.Select(typeof(Depts), "1=1", "CreateTime   ");
        rpDept.DataBind();
    }
}